<?php
if (!defined("_INDEX")) { header("Location: /"); die; }

switch($route->getAdminAction())
{
	case "received":	require_once ADMIN.DS."_messages".DS."received.php"; break;
	case "sended":		require_once ADMIN.DS."_messages".DS."sended.php"; break;
	case "send":		require_once ADMIN.DS."_messages".DS."send.php"; break;
	case "read":		require_once ADMIN.DS."_messages".DS."read.php"; break;
	case "delete":		require_once ADMIN.DS."_messages".DS."delete.php"; break;
	//ajax
	case "actions":		require_once ADMIN.DS."_messages".DS."actions.php"; break;
	
	default:			require_once ADMIN.DS."_messages".DS."received.php";
}

?>